<div class="fly-home fly-panel" style="background-image: url();">
  <img src="<?=$user['pic']?$user['pic']:'/static/bbs/images/avatar/default.png'?>" alt="<?=$user['username']?>">
  <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
  <h1>
    <?=$user['username']?>
    <?php if( $user['sex']):?>
    <i class="iconfont icon-nan"></i>
    <?php else:?>
    <i class="iconfont icon-nv"></i>
    <?php endif;?>
    <?php if($user['level']):?>
    <i class="layui-badge fly-badge-vip">VIP<?=$user['level']?></i>
    <?php endif;?>
    <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
  </h1>

  <!-- <p style="padding: 10px 0; color: #5FB878;">认证信息：<?=$user['username']?></p> -->

  <p class="fly-home-info">
    <i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;"><?=$user['score']?> 飞吻</span>
    <i class="iconfont icon-shijian"></i><span><?=com_time_format($user['create_time'],'f')?> 加入</span>
    <i class="iconfont icon-chengshi"></i><span>来自<?=$user['city']?></span>
  </p>

  <p class="fly-home-sign">（<?=$user['sign']?$user['sign']:'这个人懒得留下签名'?>）</p>

  <!-- <div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
</div> -->

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title"><?=$user['username']?> 最近的帖子</h3>
        <ul class="jie-row">
        <?php foreach($tie as $v):?>
          <li>
            <?php if( $v['is_jh']):?>
            <span class="fly-jing">精</span>
            <?php endif;?>
            <a href="<?=url('tie/detail',['id'=>$v['id']])?>" target="_blank" class="jie-title"> <?=$v['title']?></a>
            <i><?=com_time_format($v['create_time'],'f')?></i>
            <em class="layui-hide-xs"><?=$v['views']?>阅/<?=$v['reply_count']?>答</em>
          </li>
        <?php endforeach;?>
        <?php if( count($tie)<1):?>
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何帖子</i></div>
        <?php endif;?>
        </ul>
      </div>
    </div>

    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title"><?=$user['username']?> 最近的回答</h3>
        <ul class="home-jieda">
        <?php foreach($reply as $v):?>
          <li>
          <p>
          <span><?=com_time_format($v['create_time'],'f')?></span>
          在<a href="<?=url('tie/detail',['id'=>$v['tie_id']])?>#item-<?=$v['id']?>" target="_blank"><?=$v['tie_title']?></a>中回答：
          </p>
          <div class="home-dacontent">
              <?=$v['content']?>
          </div>
        </li>
        <?php endforeach;?>
        <?php if( count($reply)<1):?>
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何回答</span></div>
        <?php endif;?>
        </ul>
      </div>
    </div>
  </div>
</div>
<script>
$(document).ready(function(){
    layui.use(['fly','face','jie'],function(){
        var fly = layui.fly;
        fly.faces = layui.face;
        $('.home-dacontent').each(function(){
          var othis = $(this), html = othis.html();
          othis.html(fly.content(html));
        });
    });
});
</script>
